<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>示例3</title>
</head>
<body>
    <div id="desc">
        <h2>关注我们</h2>
        <ul>
            <li>新浪微博</li>
            <li>官方微信</li>
            <li>联系我们</li>
            <li>公益基金会</li>
        </ul>
    </div>
    <div>

    </div>
    <script>
        const oDesc = document.getElementById("desc");
        console.log(oDesc.firstElementChild.nextElementSibling.firstElementChild.firstChild.nodeValue)

        oFirst = oDesc.firstElementChild || oDesc.firstChild;
        console.log(oFirst)
    </script>
</body>
</html>